<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"  
		xmlns:h="http://java.sun.com/jsf/html"  
		xmlns:f="http://java.sun.com/jsf/core"
		xmlns:ui="http://java.sun.com/jsf/facelets"
		xmlns:c="http://java.sun.com/jsp/jstl/core">  
    
    <h:head>
        <ui:include src="../header.xhtml"></ui:include>
        <title><ui:insert name="pageTitle"></ui:insert></title>
    </h:head>

    <h:body>
            <div class="content-main">
                <div class="container-fluid page-header">
                    <div class="row-fluid">
                        <div class="container-fluid">
                            <c:if test="#{userSession.isLogged and userSession.isAdmin()}">
                                <ui:include src="../forms/search.xhtml"></ui:include>
                                <div class="well">
                                    <h1 class="center"><ui:insert name="mainTitle"></ui:insert></h1>
                                    <br />
                                    <br />
                                    <ui:insert name="mainContent" />
                                </div>
                            </c:if>
                            <c:if test="#{!(userSession.isLogged and userSession.isAdmin())}">
                                <ui:include src="/subContents/errorAccessRights.xhtml"></ui:include>
                            </c:if>
                        </div>
                    </div>
                </div>
            </div>
        
        <ui:include src="../footer.xhtml"></ui:include>	
    </h:body>
    
</html>  
